﻿<UserControl x:Class="SilverlightApplication1.AdvancedSearch"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="500" Height="210">
    <Canvas x:Name="cnvsRoot" Background="Transparent" Margin="0,28,0,0">
        <Border CornerRadius="2" Canvas.Left="6" Canvas.Top="26" Width="508" Height="183"
                Background="Transparent" Canvas.ZIndex="0"
                BorderBrush="SteelBlue" BorderThickness="0.6"/>
        <!--Background="CornflowerBlue"-->
        <Border CornerRadius="2" Canvas.Left="100" Canvas.Top="7" Width="414" Height="20"
                Background="Transparent" Canvas.ZIndex="0"
                BorderBrush="SteelBlue" BorderThickness="0.5"/>
        <!--Background="CornflowerBlue"-->
        <Border CornerRadius="2" Canvas.Left="10" Canvas.Top="30" Width="500" Height="175"
                Background="AliceBlue" Canvas.ZIndex="1"
                >
            <!--Background="AliceBlue"-->
        </Border>

        <!-- Title  -->
        <TextBlock x:Name="lblAdvTitle" Canvas.Left="106" Canvas.Top="10" Canvas.ZIndex="2"
                   Text="Advanced Search" FontSize="12"/>

        <!-- Filtered by -->
        <TextBlock x:Name="lblAdvFiltered" Canvas.Left="14" Canvas.Top="34" Canvas.ZIndex="2"
                   Text="Filtered by" FontSize="12"/>
        <!--  Author -->
        <TextBlock x:Name="lblFilAuthor" Canvas.Left="16" Canvas.Top="62" Canvas.ZIndex="2"
                   Text="Author:" FontSize="10"/>
        <TextBox x:Name="txtFilAuthor" Canvas.Left="70" Canvas.Top="58" Canvas.ZIndex="2"
                 Height="20" Width="80" MaxWidth="80" KeyDown="txtFilAuthor_KeyDown"
                 TextAlignment="Left" FontFamily="Verdana" FontSize="10"
                 GotFocus="txtFilText_GotFocus">
            <TextBox.Resources>
                <Storyboard x:Name="aparecer">
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetName="txtFilAuthor" Storyboard.TargetProperty="(UIElement.Opacity)" BeginTime="00:00:00">
                        <SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.275"/>
                    </DoubleAnimationUsingKeyFrames>
                </Storyboard>
            </TextBox.Resources>
        </TextBox>
        <!--  Publisher -->
        <TextBlock x:Name="lblFilPublisher" Canvas.Left="16" Canvas.Top="92" Canvas.ZIndex="2"
                   Text="Publisher:" FontSize="10"/>
        <TextBox x:Name="txtFilPublisher" Canvas.Left="70" Canvas.Top="88" Canvas.ZIndex="2"
                     Height="20" Width="80" MaxWidth="80" KeyDown="txtFilPublisher_KeyDown"
                     TextAlignment="Left" FontFamily="Verdana" FontSize="10"
                     GotFocus="txtFilText_GotFocus"/>
        <!--  Title -->
        <TextBlock x:Name="lblFilTitle" Canvas.Left="16" Canvas.Top="122" Canvas.ZIndex="2"
                   Text="Title:" FontSize="10"/>
        <TextBox x:Name="txtFilTitle" Canvas.Left="70" Canvas.Top="118" Canvas.ZIndex="2"
                     Height="20" Width="80" MaxWidth="80" KeyDown="txtFilTitle_KeyDown"
                     TextAlignment="Left" FontFamily="Verdana" FontSize="10"
                     GotFocus="txtFilText_GotFocus"/>
        <!-- Keyword -->
        <TextBlock x:Name="lblFilKeyword" Canvas.Left="160" Canvas.Top="62" Canvas.ZIndex="2"
                   Text="Keyword:" FontSize="10"/>
        <TextBox x:Name="txtFilKeyword" Canvas.Left="220" Canvas.Top="58" Canvas.ZIndex="2"
                     Height="20" Width="80" MaxWidth="80" KeyDown="txtFilKeyword_KeyDown"
                     TextAlignment="Left" FontFamily="Verdana" FontSize="10"
                     GotFocus="txtFilText_GotFocus"/>
        <!-- Condition -->
        <TextBlock x:Name="lblFilCondition" Canvas.Left="160" Canvas.Top="92" Canvas.ZIndex="2"
                   Text="Condition:" FontSize="10"/>
        <ComboBox x:Name="cmbFilCondition" Canvas.Left="220" Canvas.Top="88" Canvas.ZIndex="2"
                      Height="20" Width="95"
                      Background="White" FontFamily="Verdana" FontSize="9">
            <ComboBox.Items>
                <ComboBoxItem Content="All"/>
                <ComboBoxItem Content="New"/>
                <ComboBoxItem Content="Used"/>
                <ComboBoxItem Content="Collectible"/>
                <ComboBoxItem Content="Refurbished"/>
            </ComboBox.Items>
        </ComboBox>

        <!--  Category -->
        <TextBlock x:Name="lblfilCategory" Canvas.Left="160" Canvas.Top="122" Canvas.ZIndex="2"
                   Text="Category:" FontSize="10"/>
        <ComboBox x:Name="cmbFilCategory" Canvas.Left="220" Canvas.Top="118" Canvas.ZIndex="2"
                      Height="20" Width="140"  
                      Background="White" FontFamily="Verdana" FontSize="9"
                      KeyDown="cmbFilGeneric_KeyDown">
            <ComboBox.Items>
                <ComboBoxItem Content="Literature and Fiction" Tag="17"/>
                <ComboBoxItem Content="Medicine" Tag="13996"/>
                <ComboBoxItem Content="Mystery and Thrillers" Tag="18"/>
                <ComboBoxItem Content="Nonfiction" Tag="53"/>
                <ComboBoxItem Content="Outdoors and Nature" Tag="290060"/>
            </ComboBox.Items>
        </ComboBox>

        <!-- Max Price -->
        <TextBlock x:Name="lblFilMaxPrice" Canvas.Left="320" Canvas.Top="62" Canvas.ZIndex="2"
                   Text="Maximum Price (U$S):" FontSize="10"/>
        <ComboBox x:Name="cmbFilMaxPrice" Canvas.Left="440" Canvas.Top="58" Canvas.ZIndex="2"
                      Height="20" Width="55"  
                      Background="White" FontFamily="Verdana" FontSize="9"
                      KeyDown="cmbFilGeneric_KeyDown">
            <ComboBox.Items>
                <ComboBoxItem Content="200"/>
                <ComboBoxItem Content="500"/>
                <ComboBoxItem Content="1000"/>
            </ComboBox.Items>
        </ComboBox>

        <!-- Min Price -->
        <TextBlock x:Name="lblFilMinPrice" Canvas.Left="320" Canvas.Top="92" Canvas.ZIndex="2"
                   Text="Minimum Price (U$S):" FontSize="10"/>
        <ComboBox x:Name="cmbFilMinPrice" Canvas.Left="440" Canvas.Top="88" Canvas.ZIndex="2"
                      Height="20" Width="55"  
                      Background="White" FontFamily="Verdana" FontSize="9"
                      KeyDown="cmbFilGeneric_KeyDown">
            <ComboBox.Items>
                <ComboBoxItem Content="10"/>
                <ComboBoxItem Content="20"/>
                <ComboBoxItem Content="50"/>
            </ComboBox.Items>
        </ComboBox>

        <!-- Sort by -->
        <TextBlock x:Name="lblAdvSort" Canvas.Left="14" Canvas.Top="145" Canvas.ZIndex="2"        
                   Text="Sort by" FontSize="12"/>
        <!-- First by -->
        <TextBlock x:Name="lblSortFirst" Canvas.Left="16" Canvas.Top="166" Canvas.ZIndex="2"
                   Text="First by:" FontSize="10"/>
        <ComboBox x:Name="cmbSortFirst" Canvas.Left="70" Canvas.Top="164" Canvas.ZIndex="2"
                  Height="20" Width="80" Background="White" FontFamily="Verdana" FontSize="9"
                  SelectionChanged="cmbSort_SelectionChanged">
            <ComboBox.Items>
                <ComboBoxItem Content="List Price"/>
                <ComboBoxItem Content="Publication"/>
                <ComboBoxItem Content="Title"/>
            </ComboBox.Items>
        </ComboBox>
        <HyperlinkButton x:Name="hlkSortOrderF" Canvas.Left="152" Canvas.Top="168" Canvas.ZIndex="2"
                         Height="22" Width="18" ToolTipService.ToolTip="Ascending" Visibility="Collapsed"
                         Tag="asc" Click="hlkSortOrder_Click">
            <HyperlinkButton.Content>
                <Image x:Name="imgSortOrderF" Source="images/OrderAsc.jpg"/>
            </HyperlinkButton.Content>
        </HyperlinkButton>
        <!-- Second by -->
        <TextBlock x:Name="lblSortSecond" Canvas.Left="180" Canvas.Top="166" Canvas.ZIndex="2"
                   Text="Second by:" FontSize="10"/>
        <ComboBox x:Name="cmbSortSecond" Canvas.Left="240" Canvas.Top="164" Canvas.ZIndex="2"
                  Height="20" Width="80" Background="White" FontFamily="Verdana" FontSize="9"
                  SelectionChanged="cmbSort_SelectionChanged">
            <ComboBox.Items>
                <ComboBoxItem Content="List Price"/>
                <ComboBoxItem Content="Publication"/>
                <ComboBoxItem Content="Title"/>
            </ComboBox.Items>
        </ComboBox>
        <HyperlinkButton x:Name="hlkSortOrderS" Canvas.Left="322" Canvas.Top="168" Canvas.ZIndex="2"
                         Height="22" Width="18" ToolTipService.ToolTip="Ascending" Visibility="Collapsed"
                         Tag="asc" Click="hlkSortOrder_Click">
            <HyperlinkButton.Content>
                <Image x:Name="imgSortOrderS" Source="images/OrderAsc.jpg"/>
            </HyperlinkButton.Content>
        </HyperlinkButton>
        <!-- Third by -->
        <TextBlock x:Name="lblSortThird" Canvas.Left="350" Canvas.Top="164" Canvas.ZIndex="2"
                   Text="Third by:" FontSize="10"/>
        <ComboBox x:Name="cmbSortThird" Canvas.Left="405" Canvas.Top="164" Canvas.ZIndex="2"
                  Height="20" Width="80" Background="White" FontFamily="Verdana" FontSize="9"
                  SelectionChanged="cmbSort_SelectionChanged">
            <ComboBox.Items>
                <ComboBoxItem Content="List Price"/>
                <ComboBoxItem Content="Publication"/>
                <ComboBoxItem Content="Title"/>
            </ComboBox.Items>
        </ComboBox>

        <HyperlinkButton x:Name="hlkSortOrderT" Canvas.Left="487" Canvas.Top="168" Canvas.ZIndex="2"
                         Height="22" Width="18" ToolTipService.ToolTip="Ascending" Visibility="Collapsed"
                         Tag="asc" Click="hlkSortOrder_Click">
            <HyperlinkButton.Content>
                <Image x:Name="imgSortOrderT" Source="images/OrderAsc.jpg"/>
            </HyperlinkButton.Content>
        </HyperlinkButton>

        <!-- hlk clean fields -->
        <HyperlinkButton x:Name="hlkClean" Canvas.Left="472" Canvas.Top="192" Canvas.ZIndex="2"
                         FontSize="10" FontFamily="Verdana" Foreground="SteelBlue"                         
                         Content="clean" Click="hlkClean_Click"/>


    </Canvas>
</UserControl>
